<include file="Public:header" />
<link rel="stylesheet" type="text/css" href="../Public/css/pic.css"/>
<script type="text/javascript" src="../Public/js/pptBox.js"></script>
<script src="../Public/js/calendar.js" type='text/javascript' language="javascript"></script>
<script type="text/javascript">
$(function(){
	$("#wordul li").find('a').click(function(){
		$("#category").val(1);
		$("#search_keyword").val($(this).text());
		$("#form1").attr("action","{:U('Search/more')}");
		$("#form1").submit();
	});	
})
</script>
<script type="text/javascript">
//<![CDATA[
$(function(){
	var x = 10;
	var y = 20;
	$("a.tooltip").mouseover(function(e){
		//获取水印图片
		//alert(this.id);
		var id=this.id;
		var shuiyinurl=$("#shuiyin_"+id).val();
		this.myTitle = this.title;
		this.title = "";	
		var imgTitle = this.myTitle? "<br/>" + this.myTitle : "";
		var tooltip = "<div id='tooltip'><img src='"+ shuiyinurl +"' alt='产品预览图' onclick='lianjie();'/>"+imgTitle+"<\/div>"; //创建 div 元素
		$("body").append(tooltip);	//把它追加到文档中						 
		$("#tooltip")
			.css({
				"top": (e.pageY+y) + "px",
				"left":  (e.pageX+x)  + "px"
			}).show("fast");	  //设置x坐标和y坐标，并且显示
    }).mouseout(function(){
		this.title = this.myTitle;	
		$("#tooltip").remove();	 //移除 
    }).mousemove(function(e){
		$("#tooltip")
			.css({
				"top": (e.pageY+y) + "px",
				"left":  (e.pageX+x)  + "px"
			});
	});
})
//]]>
</script>
<div class="inner-content">
<div class="crumbs">当前位置：<a href="#">图片</a></div>
<div class="w_content">
<div class="content_l">
<div class="sidenav">
<h3>图片分类</h3>
<ul>
<volist id="ca" name="cate">
<li>
<dl>
<dt><a href="{:U('Picture/index',array('cateid'=>$ca['cateid'],'erji'=>1))}">{$ca.catename}</a></dt>
<dd><volist id="cas" name="ca.smcate">
<a href="{:U('Picture/index',array('cateid'=>$cas['cateid']))}">{$cas.catename}</a>
</volist>
</dd>
</dl>
</li>
</volist>
</ul>
</div>
<div class="rank">
<h3>热搜词排行</h3>
<ul id="wordul">
<li class="rankli"><span>排 名</span><span>关键字</span><span>趋 势</span></li>
<empty name="searlist">
	<p style="text-align:center; font-size:14px;">暂无热搜词</p>
<else />
<volist id="rkli" name="searlist" key="k" >
<li><span class="num">{$k}</span><span class="word"><a href="javascript:void(0);">{$rkli.keyword}</a></span><span class="rank_img">
<eq name="rkli.type" value="1">
<img src="../Public/images/red.jpg" />
<else/>
<img src="../Public/images/green.jpg" />
</eq>
</span></li>
</volist>
</empty>
</ul>
</div>
</div>
<div class="content_r">
<div class="content_r_top">
<div class="flash_img">
	<script>
     var box =new PPTBox();
     box.width = 572; //宽度
     box.height = 217;//高度
     box.autoplayer = 3;//自动播放间隔时间

     <?php if($hotlist[0]['image']){ ?>
     //box.add({"url":"图片地址","title":"悬浮标题","href":"链接地址"})
	 box.add({"url":"__PUBLIC__/Admin/Jiaodian/<?php echo $hotlist[0]['image'];?>","href":"<?php echo $hotlist[0]['lianjie'];?>","title":"图片焦点图"})
	 box.add({"url":"__PUBLIC__/Admin/Jiaodian/<?php echo $hotlist[1]['image'];?>","href":"<?php echo $hotlist[1]['lianjie'];?>","title":"图片焦点图"})
     box.add({"url":"__PUBLIC__/Admin/Jiaodian/<?php echo $hotlist[2]['image'];?>","href":"<?php echo $hotlist[2]['lianjie'];?>","title":"图片焦点图"})
     box.add({"url":"__PUBLIC__/Admin/Jiaodian/<?php echo $hotlist[3]['image'];?>","href":"<?php echo $hotlist[3]['lianjie'];?>","title":"图片焦点图"})
     box.add({"url":"__PUBLIC__/Admin/Jiaodian/<?php echo $hotlist[4]['image'];?>","href":"<?php echo $hotlist[4]['lianjie'];?>","title":"图片焦点图"})
     box.show();
	 <?php } ?>
    </script>
</div>
<div class="project_img">
<ul>
<volist id="top" name="topic">
<li><a href="javascript:void(0)" onclick="zhuanti('{$top.toptitle}')"><img src="__PUBLIC__/Admin/Topic/{$top.topimg}" width="203px" height="69px"/></a></li>
</volist>
</ul>
</div>
<script type="text/javascript">
function zhuanti(key)
{
	$("#search_keyword").val(key);	
	$("#category").val(1);
	change();
	$("#form1").submit();
}
</script>
<div class="clear"></div>
<form action="{:U('Picture/index')}" method="post" style="margin-top:10px">
<div class="retrieval">
<p>上传时间：<input id="stime1" type="radio" name="stime" class="r_btn"  onclick="showctime();" value="1" <empty name="choose.stime">checked='checked'</empty> <if condition="$choose.stime eq 1">checked='checked'</if>  />选择时间
<input id="stime2" type="radio" class="r_btn" name="stime" onclick="closectime();" value="2"  <if condition="$choose.stime eq 2">checked='checked'</if> />
快捷时间段
<select id="ftime" name="ftime" onclick="select_fast_time()">
<option id="ftime_defalut" value="1" <if condition="$choose.ftime eq 1">selected='selected'</if>>全部</option>
<option value="2" <if condition="$choose.ftime eq 2">selected='selected'</if>>最近一天</option>
<option value="3" <if condition="$choose.ftime eq 3">selected='selected'</if>>最近两天</option>
<option value="4" <if condition="$choose.ftime eq 4">selected='selected'</if>>最近一周</option>
<option value="5" <if condition="$choose.ftime eq 5">selected='selected'</if>>最近半月</option>
</select>
<span style="margin-left:5px">最近检索词：</span>
<select id="zkeyword" name="zkeyword" onchange="change_keyword()">
<option id="zkeyword_defalut" value="">无</option>
<volist id="zk" name="zkeywords">
<option value="{$zk}">{$zk}</option>
</volist>
</select>
</p>
<p class="ymd" id="ctime" <if condition="$choose.stime eq 2"> style="display:none" </if> >
开始时间:<input name="btime" type="text" style="width:100px" id="btime" maxlength="18" onfocus="c.showMoreDay = false;c.show(this);" value="{$choose.btime}" readonly="readonly"/>--
结束时间:<input name="etime" type="text" style="width:100px" id="etime" maxlength="18" onfocus="c.showMoreDay = false;c.show(this);" value="{$choose.etime}" readonly="readonly"/>
</p>
<p><span >检索词：</span>
<input type="text" id="keyword1" name="keyword1" value="{$choose.keyword1}" <if condition="$choose.bything eq 2">style="display:none"</if>/>
<input type="text" id="keyword2" name="keyword2" value="{$choose.keyword2}"  <empty name="choose.bything">style="display:none"</empty><if condition="$choose.bything eq 1">style="display:none"</if> onkeyup="value=value.replace(/[^\u4E00-\u9FA5]/g,'')" onpaste="value=value.replace(/[^\u4E00-\u9FA5]/g,'')" oncontextmenu = "value=value.replace(/[^\u4E00-\u9FA5]/g,'')" />
<input type="radio" class="r_btn" id="bything_defalut" name="bything" value="1" onclick="zhongwen_1();" <empty name="choose.bything">checked='checked'</empty> <if condition="$choose.bything eq 1">checked='checked'</if> />按 词
<input type="radio" class="r_btn" name="bything" value="2" onclick="zhongwen_2();" <if condition="$choose.bything eq 2">checked='checked'</if>  />按 字
<input type="checkbox" class="r_btn" id="all_key" name="all_key" value="1" <empty name="choose.all_key"><else /> checked='checked' </empty> />完全匹配
<input type="checkbox" class="r_btn" id="all_sql" name="all_sql" value="2" <empty name="choose.all_sql"><else /> checked='checked' </empty> />全库</p>
<p>结果定制：每页显示数目
<select id="count" name="count">
<option  value="10"  <if condition="$choose.count eq 10">selected='selected'</if>>10</option>
<option id="count_defalut" value="15" <empty name="choose.count"> selected='selected' <else />  </empty> <if condition="$choose.count eq 15">selected='selected'</if>>15</option>
<option value="20" <if condition="$choose.count eq 20">selected='selected'</if>>20</option>
</select>
<input type="radio" class="r_btn" id="orderby_default" name="orderby" value="1" <empty name="choose.orderby">checked='checked'</empty> <if condition="$choose.orderby eq 1">checked='checked'</if>/>时间倒序<input type="radio" class="r_btn" name="orderby" value="2" <if condition="$choose.orderby eq 2">checked='checked'</if>/>时间正序<input type="radio" class="r_btn" name="orderby" value="3" <if condition="$choose.orderby eq 3">checked='checked'</if>/>相关度</p>
<input type="hidden" id="submit" name="submit" value="1"/>
<p><input type="submit"  value="检 索" class="btn_r"/><input type="submit"  value="二次检索" class="btn_r" onclick="change_submit();" /><input type="button"  value="重 置" class="btn_r" onclick="byreset();"/></p>
</div>
<div class="upload"><input type="button" class="upload_bt" onclick="window.location.href='{:U('Picture/upload')}'" /></div>
<div class="clear"></div>

</div>
</form>

<div class="clear"></div>
<div class="content_r_bottom">
<ul>
<if condition="$statusx eq 1">
	<div style="margin:0 auto; width:240px;"><h3>对不起，没有符合要求的资源。</h3></div>
<else />
 <volist id="vo" name="list">
          <li class="imglist">
          <if condition="$vo.url eq ''" >
			<img src="__PUBLIC__/Images/no_img.jpg" />
		  <else />
		  <input type="hidden" value="__PUBLIC__/Uploads/Picture/sy_{$vo.url.0}" class="tooltip" id="shuiyin_{$vo.pid}"/>
          <a style="display:block;" href="{:U('Picture/info',array('vid'=>$vo['pid']))}"  title="" class="tooltip" id="{$vo.pid}"><img src="__PUBLIC__/Uploads/Picture/s_{$vo.url.0}" alt="{$vo.title}" /></a>
          </if>
          <p><a href="{:U('Picture/info',array('vid'=>$vo['pid']))}">{$vo.title|msubstr=0,8}</a><span>({$vo.point})</span></p>
          </li>
 </volist>
</if>
<div class="clear"></div>
</ul>
</div>
<div class="clear"></div>
<div class="footer_num">
{$page}
<!-- 
<a href="#">第一页</a><span>|</span><a href="#">上一页</a><span>|</span><a href="#">下一页</a><span>|</span><a href="#">尾 页</a><span>|</span>共<a href="#" class="fnum">1445</a>篇<a href="#" class="fnum">46</a>页<span>|</span>当前第<a href="#" class="fnum">1</a>页<span>|</span>跳至<input type="text" />页<input type="button" value="GO" />
 -->
</div>
</div>
<div class="clear"></div>
</div>
</div>
<script type="text/javascript">
	function showctime()
	{
		$("#ctime").show();
	}

	function closectime()
	{
		$("#ctime").hide();
	}
	
	function select_fast_time()
	{
		$(":input[name='stime']").val(2);
		$("#stime1").attr("checked","");
		$("#stime2").attr("checked","true");
		$("#ctime").hide();
	}

	function change_keyword()
	{
		var zkeyword=$("#zkeyword").val();
		$("#keyword1").val(zkeyword);
		$("#keyword2").val(zkeyword);
	}

	function change_submit()
	{
		$("#submit").val(2);
	}

	function byreset()
	{
		//$.post("{:U('Search/reset')}",{},function(data){});
		$("#ftime_defalut").attr("selected","selected");
		$("#stime1").attr("checked","checked");
		$("#stime2").attr("checked","");
		$("#ctime").show();
		$("#zkeyword_defalut").attr("selected","selected");
		$("#count_defalut").attr("selected","selected");
		$("#btime").val('');
		$("#etime").val('');
		$("#keyword1").val('');
		$("#keyword2").val('');
		$("#bything_defalut").attr("checked","checked");
		$("#all_key").attr("checked","");
		$("#all_sql").attr("checked","");
		$("#orderby_default").attr("checked","checked");
	}

	function zhongwen_1()
	{
		$("#keyword2").hide();
		$("#keyword1").show();
	}
	
	function zhongwen_2()
	{
		$("#keyword1").hide();
		$("#keyword2").show();
	}

	function lianjie(vid)
	{
		$(".tooltip").attr("href","{:U('Picture/info')}/vid/"+vid);
	}
</script>
<include file="Public:footer" />
